package com.sampleCodesJava.day3;

public class StudentRecordExample {

	public static void main(String[] args) {
		StudentRecord neneRecord = new StudentRecord();
		StudentRecord annaRecord = new StudentRecord("Anna");
		StudentRecord chrisRecord = new StudentRecord("Chris");
		StudentRecord ninjaRecord = new StudentRecord("Ninja");

		neneRecord.setName("Nene");
		neneRecord.print(neneRecord.getName());
		System.out.println(annaRecord.getName());
		System.out.println(chrisRecord.getName());
		System.out.println(ninjaRecord.getName());
		System.out.println(StudentRecord.getStudentCount());

		//instance print
		StudentRecord.print(annaRecord.getName());
		
		//static print
		print("kamote");
		print("kamote", "banana");

	}

	public static void print(String name) {
		System.out.println(name);
	}

	public static void print(String name, String haduken) {
		System.out.println(name + " " + haduken);
	}
}
